home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
tools
/
monitors
/
restracker
/
rtfreeresources.doc
< prev
next >
Wrap
Text File
|
1996-07-16
|
3KB
|
70 lines
rtFreeResources.doc
NAME
rtFreeResources - free resources tracked by rt
VERSION
V0.9b - 12-07-96
SYNOPSIS
rtFreeResources TCB/A,Debug/S,Ask/S,Show/S
REQUIREMENTS
- AmigaOS 3.0 (V39) or higher
- the "rt" resource tracker must be run first
OPTIONS
TCB/A : The address of a task-control-block in hex, just as
printed by various "ps"-clones. This argument is required!
Debug/S : Print lots of text while stepping through rt's lists
Ask/S : Pop up a requester before freeing any resource, asking you
to confirm or cancel the action.
Show/S : Don't free anything, just show all resources currently in
use by the specified task.
DESCRIPTION
rtFreeResources is a utility for the "rt" resource-tracking system. It
scans rt's resource lists for resources allocated by a given task and
frees them. Not much to say about it, see OPTIONS and EXAMPLE for more
info.
EXAMPLE
Let's assume a task called "foo" left a window and a file open and
crashed. What you have to do is first to find its TCB address. A tool
like Executive's "ps" (or the one included with muFS) is fine for
that. Then call rtFreeResources with the TCB address as a parameter,
plus optionally the Ask or Debug switch. If you didn't ask for a
confirmation requester (Ask/S), rtFreeResources will just free all
resources allocated by "foo" and tell you that it did. Specifying
"Debug" will make it tell you more than you probably want to know :-)
For safety, always tell it to Ask/S you before freeing anything, so
you don't kill your own shell windows or filehandles or sorta that.
BUGS
If the specified task has died, mainly two problems can occur:
- If the TCB has already been freed and overwritten, the task name can
not be retrieved and will be printed as garbage. Not much I can do
about this...any ideas?
- if the resource itself has vanished (most likely caused by some
other tool kicking it "the hard way"), rtFreeResources may crash
while trying to close the resource. Seems like something you gotta
live with, I can't see many possibilities for sanity checks here
either.
- Sometimes debug output looks bogus.
HISTORY
V0.9b (12-07-96): First Release
TODO
- sanity checks?
- improve list arbitration while stepping through the resource lists
AUTHOR
Matthias Bethke
Giessener Strasse 31
35457 Lollar
Germany
AmigaNet: Matthias Bethke@39:176/208.0
Usenet: postmaster@sweetdreams.lahn.de
or: Matthias.Bethke@sowi.uni-giessen.de